﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true" CodeBehind="ListBusinessPartner.aspx.cs" Inherits="VINETLIFE.AdminCP.ListBusinessPartner" %>

<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dxwtl" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <h2 id="Title">
        <asp:Label CssClass="title" ID="lblTitle" runat="server" Text=""></asp:Label></h2>
    <dxwtl:ASPxTreeList ID="tlPartnerType" runat="server" AutoGenerateColumns="False" Width="100%"
        ClientInstanceName="tlPartnerType" KeyFieldName="PartnerTypeId" ParentFieldName="ParentID"
        EnableCallbacks="False" OnNodeDeleted="tlPartnerType_NodeDeleted" OnStartNodeEditing="tlPartnerType_StartNodeEditing">
        <SettingsPager Mode="ShowPager" PageSize="100">
            <AllButton Text="Tất cả">
            </AllButton>
            <NextPageButton Text="Tiếp theo &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Trước">
            </PrevPageButton>
        </SettingsPager>
        <SettingsBehavior AllowFocusedNode="True" />
        <SettingsPager ShowDefaultImages="False">
            <AllButton Text="Tất cả">
            </AllButton>
            <NextPageButton Text="Tiếp theo &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Trước">
            </PrevPageButton>
        </SettingsPager>
        <Columns>
            <dxwtl:TreeListTextColumn FieldName="PartnerTypeId" Name="clPartnerTypeId" Visible="False"
                VisibleIndex="0">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Tiêu đề" Width="80%" Name="PartnerType" VisibleIndex="0"
                FieldName="PartnerType">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Thứ tự" Width="10%" FieldName="OrderID" Name="clOrderID"
                VisibleIndex="2">
            </dxwtl:TreeListTextColumn>
             <dxwtl:TreeListTextColumn Caption="Trạng thái" Width="10%" FieldName="TrangThai" Name="TrangThai"
                VisibleIndex="3">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListCommandColumn Caption="Sửa" VisibleIndex="4">
                <EditButton Text="Sửa" Visible="True">
                </EditButton>
            </dxwtl:TreeListCommandColumn>
            <dxwtl:TreeListCommandColumn VisibleIndex="5" Caption="Xóa">
                <DeleteButton Text="Xóa" Visible="True">
                </DeleteButton>
            </dxwtl:TreeListCommandColumn>
        </Columns>
    </dxwtl:ASPxTreeList>
    <div style="float: left; width: 100%;">
        <asp:Button CssClass="button-gg-green" runat="server" ID="btnAdd" Text="Thêm danh mục" OnClick="btnAdd_Click" />
    </div>
</asp:Content>
